from selenium import webdriver
import time
import os

driver = webdriver.Chrome()

url = os.path.join(os.path.abspath('html'), 'form_radio_checkbox.html')
driver.get(url)
time.sleep(1)

radio_element = driver.find_element_by_xpath('//input')
radio_element.click()
time.sleep(1)
radio_element2 = driver.find_element_by_xpath('//input[2]')
radio_element2.click()

time.sleep(1)
radio_element2 = driver.find_element_by_xpath('//input[3]')
radio_element2.click()

time.sleep(1)
radio_element2 = driver.find_element_by_xpath('//input[6]')
radio_element2.click()

element_list = driver.find_elements_by_xpath('//input')
for element in element_list:
    element.click()
    time.sleep(2)



time.sleep(2)
driver.quit()